import {createRouter,createWebHistory} from 'vue-router'

//创建路由
export default createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:'/',
            component:()=>import('@/views/Main.vue'),
            children:[
                {
                    path:'person',
                    component:()=>import('@/views/PersonShow.vue')
                },
                {
                    path:'personSave',
                    component:()=>import('@/views/PersonSave.vue')
                },
            ]
        },
    ]
})



